-- GENERATED SPELL FOR [Daughter of Cenarius] --


function spell0_4053(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(527,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4053', 665, 1)
end

function spell1_4053(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4053', 500, 1)
end

function Sorts_4053(pUnit, Event)
local choix_sorts_4053 = math.random(0, 1)
if choix_sorts_4053 == 0 then
pUnit:RegisterEvent('spell0_4053', 1, 1)
end
if choix_sorts_4053 == 1 then
pUnit:RegisterEvent('spell1_4053', 1, 1)
end
end

function mob4053_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4053', math.random(1500, 3000), 1)
end

function mob4053_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4053_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4053_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4053, 1, 'mob4053_Action')
RegisterUnitEvent(4053, 2, 'mob4053_Leave')
RegisterUnitEvent(4053, 3, 'mob4053_Kill')
RegisterUnitEvent(4053, 4, 'mob4053_Die')
